//
//  E7Unit.h
//  EndlessBattle
//
//  Created by cc on 12-3-17.
//  Copyright (c) 2012年 PalmGame. All rights reserved.
//

#ifndef EndlessBattle_E7Unit_h
#define EndlessBattle_E7Unit_h

#include "E7GameDefine.h"

class CE7Unit
{
public:
    CE7Unit() ;
    ~CE7Unit() ;

    void Create(int nID, eUnitValue value, int countryid, int townid, int cellid, bool isactioned = false) ;
    void ResetAction() ;

    int         GetID()       { return m_nID ; }
    int         GetCellID()   { return m_nCellID ; }
    int         GetTownID()   { return m_nTownID ; }
    int         GetCountryID(){ return m_nCountryID ; }
    eUnitValue  GetUV()       { return m_eValue ; }
    bool        IsShow()      { return m_bIsShow ; }
    bool        IsActioned() ; //  { return m_bIsActioned ; }

    void        SetUV(eUnitValue uv)  { m_eValue = uv ; }
    void        SetCellID(int cellid) { m_nCellID = cellid ; }
    void        SetTownID(int townid) { m_nTownID = townid ; }
    void        SetCountryID(int countryid) { m_nCountryID = countryid ; }
    void        SetShowState(bool flag) { m_bIsShow = flag ; }
    void        SetActionState(bool flag) { m_bIsActioned = flag ; }
private:
    int           m_nID ;
    bool          m_bIsActioned ;
    bool          m_bIsShow ;
    eUnitValue    m_eValue ;

    int           m_nCellID ;
    int           m_nTownID ;
    int           m_nCountryID ;
} ;

#endif














